package com.baizhi.controller;

import com.baizhi.service.CmfzLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @Author: renpu
 * @Date: 2019/3/13 17:19
 * @Description:
 */
@Controller
@RequestMapping("/Log")
public class CmfzLogController {
    @Autowired
    private CmfzLogService cmfzLogService;
    @RequestMapping("/selectLog")
    @ResponseBody
    public Map selectLog(int rows,int page){
        System.out.println("进入了Log");
        return cmfzLogService.selectLog(rows,page);
    }


    @RequestMapping("/deleteOne")
    @ResponseBody
    public void delete(int[] ids){
            cmfzLogService.deleteOne(ids);

    }

}
